package com.app.controller;

import com.app.entity.Account;
import com.app.mapper.AccountMapper;
import com.app.service.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.ArrayList;

@RequestMapping("app")
@RestController
public class AccountController {
    @Autowired
    private AccountService accountService;

    @CrossOrigin
    @PostMapping(value = "/getAllAccount")
    public ArrayList<Account> getAllAccount(){
        return accountService.getAllAccount();
    }
}
